package com.estate.utils;

public class CertificateCatagoryUtil {
	
	public static String getCatagoryString(int catagoryInt){
		String catagoryString="";
		switch(catagoryInt){
		case 1:
			catagoryString="工作证";
			break;
		case 2:
			catagoryString="身份证";
		}
		return catagoryString;
	}
	
	public static int getCatagoryInt(String catagoryString){
		int catagoryInt=0;
		if("身份证".equals(catagoryString)){
			catagoryInt=2;
		} else if("工作证".equals(catagoryString)){
			catagoryInt=1;
		}
		return catagoryInt;
	}
}
